import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = {
    isLoading: false, //是否显示loading ，默认false
    toast: null,      //toast 实例，用于关闭
    tabBar: '',        //底部tab栏切换选中状态,
    user: {            //用户信息
      userName: '',
      password: ''
    }
}

export default new Vuex.Store({
	state,
	getters,
	actions,
	mutations,
})
